Condition statement compares two (numerical) variables or a (numerical) variable with a constant number.
Syntax:
<if_num>("Condition")
Condition
Condition in one of these forms:
V1==V2
V1!=V2
V1<=V2
V1<V2
V1>=V2
V1>V2
V1~=V2
V1
must be a variable, V2 can be either variable or a constant number. The
operators have this meaning:
== "is equal"
!= "is not equal"
"<" is smaller
ô<=ö is smaller or equal
">" is bigger
">=" is bigger or equal
Example:
<#> This example shows how to use "if_num" command.
<#>
<cmds>
<varset>("vNum=","Insert number smaller than 10:")
<if_num>("vNum>=5")
<msg>(100,100,"The number is bigger or equal to 5.","Message",1)
<else>
<msg>(100,100,"The number is smaller than 5.","Message",1)
<endif>